home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / Development Kits / QuickTake Digital Camera / MyQuickTakeApp 1.0.2 ƒ / Headers / GeoPortErrors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-18  |  1.9 KB  |  58 lines  |  [TEXT/MPS ]

  1. /*
  2.     GeoPortErrors.h
  3.         
  4.     Copyright © Apple Computer, Inc.  1993-94.
  5. */
  6.  
  7. /* Result codes defined by GeoPort and RALF
  8.  *
  9.  * Second Open errors:
  10.  *    kNoPodErr
  11.  *    kWrongGeoPortErr
  12.  *    kGeoPortInUseErr
  13.  *    kGeoPortPodRevErr, kAlternateGeoPortErr,
  14.  *    kPodSoftwareNotFoundErr, kSoftwareInstallErr, kCpuPodIncomatibleErr
  15.  *   
  16.  * Returned while GeoPort is being used:
  17.  *   
  18.  *    kNoPodErr, kPodHwErr, kGeoPortDisconnectErr 
  19.  */
  20.  
  21. #ifndef __GEOPORTERRORS__
  22. #define __GEOPORTERRORS__
  23.  
  24.  
  25. enum {                                // GeoPort result codes
  26.     kNoPodErr = -7937,                    // No GeoPort pod is connected
  27.     kPodHwErr = -7938,                    // Glitch occurred.
  28.                                         // User can try the connection again.
  29.     kWrongGeoPortErr = -7939,            // A GeoPort is present but it is of the wrong family type
  30.     kGeoPortInUseErr = -7940,            // GeoPort is already in use
  31.     kGeoPortDisconnectErr = -7941,        // returned if GeoPort is disconnected or fails
  32.                                         // User needs to correct GeoPort fault.
  33.     kGeoPortPodRevErr = -7942,            // Hardware rev of pod is not supported
  34.     kAlternateGeoPortErr = -7943,        // Pod is different but same family ID
  35.     kPodSoftwareNotFoundErr = -7944,    // Couldn't find pod handler software
  36.     kSoftwareInstallErr = -7945,        // Software not installed properly
  37.     kCpuPodIncompatibleErr = -7946,        // CPU and pod are incompatible
  38.     kNoPortErr = -7947,                    // No more ports or port specifier is invalid
  39.     kNoMoreStreams = -7948,                // Can't allocate any more streams
  40.     kNakReceived = -7949,                // Pod sent NAK to poll command
  41.     kCmdTimeout = -7950,                // Command timed out
  42.     kDriverAlreadyOpenErr = -7951,        // This operation is not allowed when the driver is already open
  43.     kIopModeNotSupported = -7952,        // IOP Mode is not supported, use serial switch to change to compatibility mode
  44.     kPortInUseByLocalTalk = -7953
  45.     };
  46.  
  47.  
  48. enum {                                // GeoPort Serial Driver port status codes
  49.     kGeoPortFree = -4003,
  50.     kPortFree = -4004,
  51.     kInUseByGeoPort = -4005,
  52.     kInUseBySerial = -4006,
  53.     kInUseByUnknown = -4007,
  54.     kInUseByLocalTalk = -4008
  55.     };
  56.  
  57.  
  58. #endif